'use strict'
import { el_import } from '@/router/lazyRouter'
import Layout from '@/layout/index.vue'
import ChildrenLayout from '@/layout/ChildrenLayout.vue'
import loading from '@/components/loading/index.vue'
export const adminDataRouters = [
  {
    path: '',
    meta: {title: '数据管理', icon: 'el-icon-notebook-2'},
    component: Layout,
    children: [
      {
        path: '/data/calibration',
        meta: {title: '标定管理', icon: 'dashboard'},
        component: el_import('data/calibration/index'),
        show: true
      },
      {
        path: '/data/calibration/dataScatter',
        name: '数据可视化',
        meta: {title: '数据可视化', icon: 'dashboard'},
        component: el_import('data/calibration/dataScatter'),
        props: true,
        show: false
      },
      // {
      //   path: '/data/ML',
      //   meta: {title: 'AI预测模块', icon: 'dashboard'},
      //   component: el_import('data/ML/index'),
      //   show: true
      // },
      {
        path: '/data/feedback',
        name: '信息反馈单可视化',
        meta: {title: '信息反馈单可视化', icon: 'dashboard'},
        component: el_import('data/feedback/index'),
        show: true
      },
      {
        path: '/data/surgical',
        name: '手术记录管理',
        meta: {title: '手术记录管理', icon: 'dashboard'},
        component: el_import('data/surgical/index'),
        show: true
      }
    ]
  },
  {
    path: '/setting',
    meta: { title: '系统管理', icon: 'el-icon-s-tools' },
    component: Layout,
    children: [
      {
        path: '/setting/user',
        meta: { title: '用户管理', icon: 'dashboard' },
        component: el_import('setting/user/index'),
        show: true
      },
      {
        path: '/setting/role',
        meta: { title: '角色管理', icon: 'dashboard' },
        component: ChildrenLayout,
        children: [
          {
            path: '/setting/role/root',
            meta: { title: '系统用户', icon: 'dashboard' },
            component: loading,
            show: true
          }, {
            path: '/setting/role/admin',
            meta: { title: '管理员', icon: 'dashboard' },
            component: loading,
            show: true
          }
        ]
      }
    ]
  }
]
